home *** CD-ROM | disk | FTP | other *** search
/ Shocking The Web CD-ROM / SHOCK_CD.ISO / mac / Chapter Tutorials / DevGallery / Turntable / Source / shocker13ola.dir / 00017.ls < prev    next >
Encoding:
Text File  |  1996-11-10  |  812 b   |  27 lines

  1. on startMovie
  2.   global gTableSprite, gOrigin, gPlatform, gUpSnd, gDownSnd, gBeatSnd, gPressed
  3.   set gPressed to 0
  4.   if the machineType = 256 then
  5.     set gPlatform to #PC
  6.   else
  7.     set gPlatform to #Mac
  8.   end if
  9.   set gUpSnd to "ola up"
  10.   set gDownSnd to "ola down"
  11.   set gBeatSnd to "ola beat"
  12.   puppetSound(2, the number of member gBeatSnd)
  13.   set gTableSprite to 1
  14.   set originH to the left of sprite gTableSprite + ((the right of sprite gTableSprite - the left of sprite gTableSprite) / 2)
  15.   set originV to the top of sprite gTableSprite + ((the bottom of sprite gTableSprite - the top of sprite gTableSprite) / 2)
  16.   set gOrigin to point(originH, originV)
  17.   cursor(4)
  18.   preLoadCast()
  19.   cursor(0)
  20. end
  21.  
  22. on keyDown
  23.   if "0123456789" contains the key then
  24.     set the soundLevel to integer(the key)
  25.   end if
  26. end
  27.